package top.kaoshanji.r7ch14c;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.kaoshanji.r7ch14c.domain.Forum;
import top.kaoshanji.r7ch14c.mapper.ForumMapper;

/**
 * 代码清单-r7ch14c-481页c：直接注入映射接口
 * @author kaoshanji
 * ^_^
 * create time 2025/5/12 15:02
 */
@Service
public class ForumService {

    @Autowired
    private ForumMapper forumMapper;

    public Forum getForum(int forumId) {
        return forumMapper.getForum(forumId);
    }

    public int getForumNum() {
        return forumMapper.getForumNum();
    }

}
